<template>
	<view>
		<!-- <u-navbar :is-back="true" :is-fixed="true" title="简报详情"></u-navbar> -->
		<free-divider></free-divider>
		<u-field v-model="title" :border-bottom="false" label-width="180" label="上市简报主题:" :disabled="true"
			input-align="right" :field-style="placeholderStyle">
		</u-field>
		<u-field v-model="agricultureUserId_dictText" :border-bottom="false" label="企业名称:" :disabled="true"
			input-align="right" :field-style="placeholderStyle"></u-field>

		<u-field v-model="phone" :border-bottom="false" label="手机号:" :disabled="true" input-align="right"
			:field-style="placeholderStyle"></u-field>

		<u-field v-model="productName" :border-bottom="false" :disabled="true" label="产品名称:" input-align="right"
			:field-style="placeholderStyle"></u-field>

		<u-field v-model="listingTime" :border-bottom="false" :disabled="true" label-width="180" label="预计上市时间:"
			input-align="right" :field-style="placeholderStyle"></u-field>

		<u-field v-model="baseAddress" :border-bottom="false" :disabled="true" label="基地地址:" input-align="right"
			:field-style="placeholderStyle"></u-field>
		 <view class="dfel pl-3 pr-3 lineHight-3">
				<view>预计产量:</view>
			 	<view class="dfes text-999999">
					<view class="">{{output}}</view>
					<view class="pr-1 pl-1">{{productSpecsText}}</view>
				</view>
		 </view>
		<u-field v-model="updateTime" :border-bottom="false" :disabled="true" label="提交时间:" input-align="right"
			:field-style="placeholderStyle"></u-field>
	</view>
</template>

<script>
	import freeDivider from '@/components/free-ui/free-divider.vue'
	export default {
		components: {
			freeDivider,
		},
		data() {
			return {
				mobile: '测试奢侈',
				placeholderStyle: {
					color: '#999',
				},
				agricultureUserId: '',
				baseAddress: '',
				estimatedOutput: 0,
				id: '',
				listingTime: '',
				phone: '',
				productInformId: '',
				productName: '',
				productSpecs: '',
				remark: '',
				state: '',
				title: '',
				updateTime: '',
				agricultureUserId_dictText: '',
				output: '',
			}
		},
		computed: {},
		onLoad(options) {
			console.log(options)
			if (options.item) {
				const obj = JSON.parse(options.item || {})
				this.agricultureUserId = obj['agricultureUserId'] || '-'
				this.baseAddress = obj['baseAddress'] || '-'
				this.estimatedOutput = obj['estimatedOutput'] || '-'
				this.listingTime = obj['listingTime'] || '-'
				this.phone = obj['phone'] || '-'
				this.productInformId = obj['productInformId'] || '-'
				this.productName = obj['productName'] || '-'
				this.productSpecs = obj['productSpecs'] || '-'
				this.remark = obj['remark'] || '-'
				this.state = obj['state'] || '-'
				this.title = obj['title'] || '-'
				this.updateTime = obj['updateTime'] || '-'
				this.agricultureUserId_dictText = obj['agricultureUserId_dictText'] || '-'
				this.output = `${obj['estimatedOutput']}${obj['productSpecs']}`
				this.productSpecsText = `${obj['productSpecsText']}`
			}
		},
		methods: {},
	}
</script>

<style></style>